package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.RoleBean;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IUserDao extends BaseMapper<UserBean> {
    UserBean findByUserId(@Param("userId") int userId);

    List<UserBean> showUserByPage(String username);

    UserBean userLogin(@Param("username") String username, @Param("password") String password);

    List<RoleBean> findRole(@Param("userId") long userId);
}
